CC=gcc
CFLAGS=-I. -DOPENWRT
OBJ = xuci.o xmpp_agent.o
SBINDIR?=$(DESTDIR)${PREFIX}/sbin

LIBS=-lstrophe -lpthread -luci

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

xmpp_agent: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
install:
	install -d -m 0755 ${SBINDIR}
	install -m 0755 xmpp_agent ${SBINDIR}

clean:
	rm -f *.o xmpp_agent

